<template>
    <div>
        <div>权限判断</div>
        <div>YJYY1001是否有权限: {{ isHavePermission('YJYY1001') }}</div>
        <div>是否有管理员权限GLY0001: {{ isHavePermission('GLY0001') }}</div>
        <div class="mar-t-10">通过权限操作dom元素的显示与隐藏</div>
        <div v-permission="['GLY0001']">有管理员权限</div>
        <div v-permission="['YJYY1001']">没有YJYY1001权限</div>
    </div>
</template>

<script setup>
import { isHavePermission } from '@/utils/auth';
console.log('isHavePermission', isHavePermission('GLY0001'))
</script>

<style>
</style>